<?php

namespace app\admin\controller;

use think\Request;
use think\Db;
use think\Controller;
use think\Loader;

class Logout extends Common {

    public function index(){
        cookie('username', null);
        cookie('token', null);
        //session('null');
        session_destroy();
        $this->success('注销成功', 'admin/login/index');
    }
}